#ifndef PROJECT_H
	#define PROJECT_H
	#include "A3_1.h"
#endif

// get the idea from the website: http://www.naturewizard.com/tutorial08.html
// from here
// **************************************************************************

GLint const MAXPARTICLE = 100;

typedef struct
{
	GLfloat lifetime;					// total lifetime of the particle
	GLfloat decay;					// decay speed of the particle
	GLfloat r,g,b;					// color values of the particle
	GLfloat initalHeight;				// initial height of the particle
	GLfloat radius;					// radius of the particle
	GLfloat xpos,ypos,zpos;			// position of the particle
	GLfloat xspeed,yspeed,zspeed;		// speed of the particle
	GLboolean active;					// is particle active or not?
	bool decrease;
} PARTICLE;


void CreateParticle(GLint i);
void EvolveParticle();
void InitializeParticle();
void DrawSphere(GLdouble Radius);
void DrawScene();
void DisplayParticles ();
void FunctionKeys (int key, int x, int y);

GLfloat GetConeWaterLevel();
GLfloat GetConeTopRadius();